package org.hd.login.dao;

import org.apache.ibatis.annotations.Mapper;
import org.hd.entities.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/***
 * UserDao处理接口
 */
@Repository
@Mapper
public interface UserDao {

    //获取用户
    User getUser(String username);

    //刷新私钥与公钥
    boolean refreshKey(String private_key,String public_key,String username);

//获取用户列表
    List<User> getUserList();

}
